<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>
	.col-xs-6{
		padding:5px
	}
	.col-xs-3{
		padding:5px
	}
	.col-xs-9{
		padding:5px
	}
	.col-xs-12{
		padding:5px
	}
</style>
<body class="gray-bg" style="overflow-y: hidden">
<div class="wrapper wrapper-content ">
	<div class="row">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="ibox-content" style="padding:0;margin-top:0px;">
					<form class="form-horizontal m-t" id="signupForm">
						<div class='container-fluid' style="margin-top:-10px">
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">商户名称：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${shop.name}"></div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">用户名称：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${shop.userName}"></div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">所属小区：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${shop.cName}"></div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">所在地址：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${shop.addr}"></div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">商户类别：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${shop.iName}"></div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">联系电话：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${shop.mobile}"></div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">注册时间：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${#dates.format(shop.createTime, 'yyyy/MM/dd HH:mm')}"></div>
								</div>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">审核状态：</div>
									<div th:if="${shop.auditStatus} == '0'" class='col-xs-9' style="text-align:left;color:black" title="未审核">
										<img src="/img/m/wsh.jpg" height="30" width="65" style="margin-top:-5px"/>
									</div>
									<div th:if="${shop.auditStatus} == '1'" class='col-xs-9' style="text-align:left;color:green" title="审核通过">
										<img src="/img/m/shtg.png" height="30" width="65" style="margin-top:-5px"/>
									</div>
									<div th:if="${shop.auditStatus} == '2'" class='col-xs-9' style="text-align:left;color:red" title="审核拒绝">
										<img src="/img/m/shwtg.jpg" height="30" width="65" style="margin-top:-5px"/>
									</div>
								</div>
							</div>
							<div class='row'>
								<div class='col-xs-6'>
									<div class='col-xs-3' style="text-align:right">营业执照：</div>
									<div class='col-xs-9' style="text-align:left">
										<input type="hidden" id="licenseUrl" th:value="${shop.licensePhotoPath}"/>
										<a href="javascript:;" onclick="showBig()"><img title="点击查看大图" th:src="${shop.licensePhotoPath}" height="150" width="100%" style="border: 1px #ccc solid"/></a>
									</div>
								</div>
								<div class='col-xs-6' th:if="${shop.auditStatus} == 2">
									<div class='col-xs-3' style="text-align:right">拒绝理由：</div>
									<div class='col-xs-9' style="text-align:left" th:text="${shop.refuseReason}"></div>
								</div>
								<div class='col-xs-6' th:if="${shop.auditStatus} == 0">
									<div class='col-xs-3' style="text-align:right">进行审核：</div>
									<div class='col-xs-9' style="text-align:left">
										<div style="margin-top:-10px">
											<input type="hidden"  name="id" th:value="${shop.id}"/>
											<label class="radio-inline">
											   <input type="radio" onclick="changeDiv(1)" name="auditStatus" value="1" checked /> 审核通过
											</label>
											<label class="radio-inline">
												<input type="radio" onclick="changeDiv(2)" name="auditStatus" value="2" /> 审核拒绝
											</label>
										</div>
										<div style="margin-top:10px" id="reasonDiv" style="display:none">
											<textarea rows="4"  style="resize:none;width:100%" name="refuseReason" id="refuseReason" maxlength="150" placeholder="请输入拒绝原因..."></textarea>
										</div>
										<div style="float:right;margin-top:10px">
											<button  type="button" id="auditBtn" onclick="audit()" class="btn btn-primary">提交</button>
										</div>
									</div>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<img id="showlicenseImg" src="" alt="license" style="display:none">
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/shop/audit.js">
	</script>
</body>
</html>
